#include<iostream>
using namespace std;
class A {
public:
	void print() {
		cout <<"A::print()" << endl;
	}
private:
	int _a;
};
class B :public A {
public:
	void print() {
		cout << "B::print()" << endl;
	}
private:
	int _b;
};
int main(){
	B().print();
	B().A::print();
	return 0;
}